﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

namespace DunSilverlight
{
    public partial class TestPage : Page
    {
        public TestPage()
        {
            InitializeComponent();
        }

        // 当用户导航到此页面时执行。
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                //UserService.UserServiceClient userSer = new UserService.UserServiceClient();

                //userSer.GetUserByIdCompleted += new EventHandler<UserService.GetUserByIdCompletedEventArgs>(userSer_GetUserByIdCompleted);
                //userSer.GetUserByIdAsync(100);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }


        private void button2_Click(object sender, RoutedEventArgs e)
        {
        //    try
        //    {
        //        RoleService.RoleServiceClient roleSvr = new RoleService.RoleServiceClient();

        //        roleSvr.GetResultCompleted += new EventHandler<RoleService.GetResultCompletedEventArgs>(roleSvr_GetResultCompleted);
        //        roleSvr.GetResultAsync();
        //    }
        //    catch (Exception ex)
        //    {
        //        MessageBox.Show(ex.Message);
        //    }
        }

        //void roleSvr_GetResultCompleted(object sender, RoleService.GetResultCompletedEventArgs e)
        //{
        //    object o = e.Result;
        //}



    }
}
